package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
@TableName("picc_like")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 点赞目标ID
     */
    private Integer targetId;

    /**
     * 点赞目标类型 1医护 2文章 3评论  4医院
     */
    private Integer targetType;

    /**
     * 点赞目标用户
     */
    private String toUsername;

    /**
     * 点赞来自
     */
    private String fromUsername;

    /**
     * 来自姓名
     */
    private String fromName;

    /**
     * 头像
     */
    private String fromAvatar;

    /**
     * 点赞时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 0未读 1已读
     */
    private Integer isRead;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public Integer getTargetType() {
        return targetType;
    }

    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }

    public String getToUsername() {
        return toUsername;
    }

    public void setToUsername(String toUsername) {
        this.toUsername = toUsername;
    }

    public String getFromUsername() {
        return fromUsername;
    }

    public void setFromUsername(String fromUsername) {
        this.fromUsername = fromUsername;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getFromAvatar() {
        return fromAvatar;
    }

    public void setFromAvatar(String fromAvatar) {
        this.fromAvatar = fromAvatar;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    @Override
    public String toString() {
        return "Like{" +
        "id = " + id +
        ", targetId = " + targetId +
        ", targetType = " + targetType +
        ", toUsername = " + toUsername +
        ", fromUsername = " + fromUsername +
        ", fromName = " + fromName +
        ", fromAvatar = " + fromAvatar +
        ", createTime = " + createTime +
        ", isRead = " + isRead +
        "}";
    }
}
